package com.kgcx.system.domain;

import com.kgcx.dbutils.domain.BaseDomain;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;

import javax.persistence.Table;
import javax.persistence.Transient;
import java.util.List;

@Data
@EqualsAndHashCode(callSuper = false)
@Table(name = "t_sys_app_guide")
@ApiModel(value = "app引导页")
public class AppGuide extends BaseDomain {

    /**
     * 名称
     */
    @ApiModelProperty(value = "名称", required = true, example = "司机端1.1版本引导页")
    private String name;

    /**
     * 引导类型：1=司机端，2=乘客端
     */
    @ApiModelProperty(value = "导类型：1=司机端，2=乘客端", required = true, example = "1")
    private Integer type;

    /**
     * 页数
     */
    @ApiModelProperty(value = "页数", required = true, example = "3")
    private Integer pageCount;

    /**
     * 对应版本
     */
    @ApiModelProperty(value = "对应版本", required = true, example = "1.1")
    private String version;

    /**
     * 展现类型：0=每次启动都展现，1=对应版本第一次打开展现，等
     */
    @ApiModelProperty(value = "展现类型：0=每次启动都展现，1=对应版本第一次打开展现，等", required = true, example = "1")
    private Integer showType;
    /**
     * 引导页详情页数据
     */
    @ApiModelProperty(value = "引导页详情页数据", required = true)
    @Transient
    private List<AppGuidePage> appGuidePageList;

}